package com.supermarket.controller;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author yinxing
 * @date 2022-08-05
 */
@RestController
public class SupermarketController {

    @GetMapping("/hello")
    public String hello(String source) {
        return "hello i am the supermarket !" + source;

    }

    @PostMapping("/testPost")
    public Response testPost(@RequestBody Map<String, String> map) {
        return Response.builder().code(200).message("ff").data(map).build();
    }
}
